package com.platform.generate.modular.enums;

import com.platform.core.annotion.ExpEnumType;
import com.platform.core.exception.enums.abs.AbstractBaseExceptionEnum;
import com.platform.core.factory.ExpEnumCodeFactory;

/**
 * 数据源数据启动状态
 */
public enum DataSourceStatusEnum implements AbstractBaseExceptionEnum {


    DATA_ENABLE(0, "数据启用"),
    DATA_STOP(1, "数据停用"),
    DATA_DELETE(2, "数据删除");

    private final Integer code;

    private final String message;
        DataSourceStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
